const {getEssay} = require('../service/essay')
class Essay{
    async getEssay(ctx,next){
       
      const tid = ctx.request.body.tid || undefined;
      ctx.body =  await getEssay(tid);
    }
    async createEssay(ctx,next){

    }
    async uploadImage(){

    }
}
module.exports = new Essay();